<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class Nav extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('navigation', function (Blueprint $table){
            $table->increments("id");
            $table->integer("parent_id")->comment("上级导航");
            $table->string("title")->comment("导航名字");
            $table->integer('order')->default(0);
            $table->string("url")->comment("url地址");
            $table->tinyInteger("status")->default("1")->comment("可用性");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
